<!DOCTYPE HTML>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
<title>Fuel Program - Find Route</title>
<!-- Bootstrap -->
<link href="/FuelProgram/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
	<c_rt:if test="${fn:length(gasStations) ==  0 }">
		<c:redirect url="BestRoute" />
	</c_rt:if>
	<div class="container">


		<div class="row">
			<div class="col-xs-10">
				<h1>${fn:length(gasStations) } Gas station(s) information
					available in session loaded</h1>
			</div>
		</div>
		<br />
		<div class="row">
			<div class="col-xs-6">
				<form role="form" method="post" action="ShowRoute">
					<div class="input-group">
						<span class="input-group-addon">Source</span> <input type="text"
							class="form-control" placeholder="Enter a place" name="sourcePlace"
							id="SourcePlace"><br />
					</div>
					<div class="input-group">
						<span class="input-group-addon">Destination</span> <input
							type="text" class="form-control" placeholder="Enter a place"
							name="destPlace" id="DestPlace"><br />
					</div>
					<button type="submit" class="btn btn-default navbar-btn">Find
						Route</button>
				</form>
			</div>
		</div>
	</div>

	<script
		src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap.min.js"></script>
</body>
</html>
